<template>
  <div>
      <component :is="theme" :coupon="coupon"></component>
  </div>
</template>

<script>
  import Theme1 from './theme1.vue';
export default {
  name:'CouponItem',
  components:{
    Theme1
  },
  props:{
    theme:{
      type:String,
      default:'theme1',
      required:true,
    },
    coupon:{
      type:Object,
      // required:true,
      default(){
        return {
          title:'跨店下单立减',
          discountMoney:30,
          reachMoney:300,
          desc1:'跨店满减',
          desc2:'上不封顶，可叠加使用'
        }
      }
    }
  }
}
</script>

<style>

</style>
